<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title>员工表</title>
        <link rel="stylesheet" href="css/edit.css"  type="text/css" />
    </head>
    <body>
        <div id="box">
            <h1>修改员工信息</h1>
            <form action="bbssave.php?e_id=<?php echo $one['e_id']?>" method="post">
            <table>
                <tr>
                    <td class="hui">姓名：</td>
                    <td class="bai">
                        <input class="name" name="e_name" type="text"  required="required"  value="<?php echo $one['e_name']?>"/>
                    </td>
                </tr>
                <tr>
                    <td class="hui">性别：</td>
                    <td class="bai">
                        <input type="radio" name="e_gender" value="男" 
               <?php 
               if ($one['e_gender']=='男') echo 'checked="checked"';
               ?>
               />男
        <input type="radio" name="e_gender" value="女" 
               <?php 
               if ($one['e_gender']=='女') 
               {echo 'checked="checked"';}
               ?>
               />女
                    </td>
                </tr>
                <tr>
                    <td class="hui">所属部门：</td>
                    <td class="bai">
                        <select name="e_dept" style="margin-left: 40px;">
                            <option 
                                <?php 
               if ($one['e_dept']=='市场部') echo 'selected="selected"';
               ?>
                             >市场部</option>
                            <option
                                <?php 
               if ($one['e_dept']=='开发部') echo 'selected="selected"';
               ?>
                                >开发部</option>
                            <option
                                <?php 
               if ($one['e_dept']=='媒体部') echo 'selected="selected"';
               ?>
                                >媒体部</option>
                            <option
                                <?php 
               if ($one['e_dept']=='销售部') echo 'selected="selected"';
               ?>
                                >销售部</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="hui">头像：</td>
                    <td class="bai">
                        <input type="radio" name="e_img" value="images/1.jpg" 
                <?php 
               if ($one['e_img']=='images/1.jpg') echo 'checked="checked"';
               ?>
                 /><img src=" images/1.jpg" alt="" />
          <input type="radio" name="e_img" value="images/2.jpg" 
                <?php 
               if ($one['e_img']=='images/2.jpg') echo 'checked="checked"';
               ?>
                 /><img src=" images/2.jpg" alt="" />
          <input type="radio" name="e_img" value="images/3.jpg" 
                  <?php 
               if ($one['e_img']=='images/3.jpg') echo 'checked="checked"';
               ?>
                 /><img src=" images/3.jpg" alt="" />
          <input type="radio" name="e_img" value="images/4.jpg" 
                  <?php 
               if ($one['e_img']=='images/4.jpg') echo 'checked="checked"';
               ?>
                 /><img src=" images/4.jpg" alt="" />
                    </td>
                </tr>
                <tr>
                    <td class="hui">出生年月：</td>
                    <td class="bai">
                        <input type="text" name="date_of_entry" value="<?php echo $one['date_of_entry']?>"/>
                    </td>
                </tr>
                <tr>
                    <td class="hui">入职时间：</td>
                    <td class="bai">
                        <input type="text" name="date_of_birth" value="<?php echo $one['date_of_birth']?>"/>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td class="zong">
                       <input class="btn" style="width: 70px;height: 25px;"  type="button" value="取消" onclick="javascript:window.location.href='index.php';" />
                       <input class="btn" style="width: 70px;height: 25px;"  type="submit" value="保存修改" />
                    </td>
                </tr>
            </table>
            </form>
            <div class="close" onclick="javascript:window.location.href='index.php';"></div>
        </div>
    </body>
</html>
